#include <iostream>
using namespace std;
#include <iomanip>
void plu(int a[][3], int b[][3], int m, int n);//dingyi jisuan juzhen jiafa hanshu.

int main()
{
	int array1[][3] = {3, 1, -2, 3, 4, -3, -6, 7, 8};
	int array2[][3] = {3, 4, 6, 5, 0, 3, 2, 1, -7};
	plu (array1, array2, 3, 3);
	return 0;
}

void plu (int a[][3], int b[][3], int m, int n)
{
	int temp[3][3];//don't forget gaozhi 2wei shuzu de hang he lie,que yi buke
	for (int i=0; i<m; i++)
	{
		for (int j=0; j<n; j++)
		{
			temp[i][j] = a[i][j] + b[i][j];
		}
	}
	
	for (int k=0; k<m; k++)//yi juzhen xingshi shuchu 
	{
		for (int l=0; l<n; l++)
		{
			cout << setw(2) << temp[k][l];
		}
		cout << endl;
	}
}
